package com.ghck.server.service;
import java.util.List;

import com.ghck.server.model.TestQuestionItem;
import com.ghck.server.model.query.TestQuestionItemQuery;

/**
 * 测试题目选项  <br>
 * t_test_question_item <br>
 * v1.0 2016-05-01
 */
 public interface TestQuestionItemService {
	
	/**
 	*根据ID删除 测试题目选项
 	*/
 	public Integer deleteTestQuestionItemById(Integer id);
 	
 	/**
 	*新增 测试题目选项
 	*/
 	public Integer batchInsertTestQuestionItem(List<? extends TestQuestionItem> testQuestionItems);
 	
 	/**
 	*新增 测试题目选项
 	*/
 	public Integer insertTestQuestionItem(TestQuestionItem domain);
 
 	
 	/**
 	*更新 测试题目选项
 	*/
 	public Integer updateTestQuestionItem(TestQuestionItem domain);
 	
 	/**
 	*根据ID查询 测试题目选项
 	*/
 	public TestQuestionItem findTestQuestionItemById(Integer id);

	/**
 	*通过query 查询 测试题目选项
 	*/
	public List<TestQuestionItem> findTestQuestionItemByQuery(TestQuestionItemQuery query);	
	
	/**
 	*通过query count总条数
 	*/
 	public Integer countTestQuestionItemByQuery(TestQuestionItemQuery query);
 	
 	/**
 	* 通过ids查询
 	*/
 	public List<TestQuestionItem> findTestQuestionItemByIds(List<Integer> ids);
 	
}	